package com.fzhucc.ms.auth.service

import com.fzhucc.common.PageRequest
import org.apache.dubbo.config.annotation.DubboReference
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.data.domain.Pageable

/**
 * @author Woolsen
 * @since 2022/12/27 15:53
 */
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class UserServiceTest {

    @DubboReference
    private lateinit var userService: UserService

    @Test
    fun findAll() {
        userService.findAll(PageRequest(0, 10), null).content.forEach {
            println(it)
        }
    }
}